﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetABC" targetNamespace="http://tempuri.org/DataSetABC.xsd" xmlns:mstns="http://tempuri.org/DataSetABC.xsd" xmlns="http://tempuri.org/DataSetABC.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="Bus_proConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Bus_proConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.Bus_proConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable1TableAdapter" GeneratorDataComponentClassName="DataTable1TableAdapter" Name="DataTable1" UserDataComponentName="DataTable1TableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Bus_proConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillABC" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetDataABC" GeneratorSourceName="FillABC" GetMethodModifier="Public" GetMethodName="GetDataABC" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetDataABC" UserSourceName="FillABC">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>select *
from Table_Sale
INNER JOIN Table_SaleDetail
    ON  Table_Sale.Sale_id = Table_SaleDetail.Sale_id</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Sale_id" DataSetColumn="Sale_id" />
              <Mapping SourceColumn="Passenger_id" DataSetColumn="Passenger_id" />
              <Mapping SourceColumn="Sale_date" DataSetColumn="Sale_date" />
              <Mapping SourceColumn="Sale_time" DataSetColumn="Sale_time" />
              <Mapping SourceColumn="Promotion_id" DataSetColumn="Promotion_id" />
              <Mapping SourceColumn="Point_id" DataSetColumn="Point_id" />
              <Mapping SourceColumn="Personnel_id" DataSetColumn="Personnel_id" />
              <Mapping SourceColumn="Around_id" DataSetColumn="Around_id" />
              <Mapping SourceColumn="SSID" DataSetColumn="SSID" />
              <Mapping SourceColumn="Seat_id" DataSetColumn="Seat_id" />
              <Mapping SourceColumn="Seat_no" DataSetColumn="Seat_no" />
              <Mapping SourceColumn="Sale_id1" DataSetColumn="Sale_id1" />
              <Mapping SourceColumn="Price_ticket" DataSetColumn="Price_ticket" />
              <Mapping SourceColumn="tex" DataSetColumn="tex" />
              <Mapping SourceColumn="Around_id1" DataSetColumn="Around_id1" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="Bus_proConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="AVBFillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="AVBGetDataBy" GeneratorSourceName="AVBFillBy" GetMethodModifier="Public" GetMethodName="AVBGetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="AVBGetDataBy" UserSourceName="AVBFillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>select *
from Table_Sale
INNER JOIN Table_SaleDetail
    ON  Table_Sale.Sale_id = Table_SaleDetail.Sale_id
inner join Table_Promotion
on Table_Sale.Promotion_id = Table_Promotion.Promotion_id</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetABC" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetABC" msprop:Generator_UserDSName="DataSetABC">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DataTable1" msprop:Generator_TableClassName="DataTable1DataTable" msprop:Generator_TableVarName="tableDataTable1" msprop:Generator_RowChangedName="DataTable1RowChanged" msprop:Generator_TablePropName="DataTable1" msprop:Generator_RowDeletingName="DataTable1RowDeleting" msprop:Generator_RowChangingName="DataTable1RowChanging" msprop:Generator_RowEvHandlerName="DataTable1RowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable1RowDeleted" msprop:Generator_RowClassName="DataTable1Row" msprop:Generator_UserTableName="DataTable1" msprop:Generator_RowEvArgName="DataTable1RowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Sale_id" msprop:Generator_ColumnVarNameInTable="columnSale_id" msprop:Generator_ColumnPropNameInRow="Sale_id" msprop:Generator_ColumnPropNameInTable="Sale_idColumn" msprop:Generator_UserColumnName="Sale_id" type="xs:int" />
              <xs:element name="Passenger_id" msprop:Generator_ColumnVarNameInTable="columnPassenger_id" msprop:Generator_ColumnPropNameInRow="Passenger_id" msprop:Generator_ColumnPropNameInTable="Passenger_idColumn" msprop:Generator_UserColumnName="Passenger_id" type="xs:int" minOccurs="0" />
              <xs:element name="Sale_date" msprop:Generator_ColumnVarNameInTable="columnSale_date" msprop:Generator_ColumnPropNameInRow="Sale_date" msprop:Generator_ColumnPropNameInTable="Sale_dateColumn" msprop:Generator_UserColumnName="Sale_date" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Sale_time" msprop:Generator_ColumnVarNameInTable="columnSale_time" msprop:Generator_ColumnPropNameInRow="Sale_time" msprop:Generator_ColumnPropNameInTable="Sale_timeColumn" msprop:Generator_UserColumnName="Sale_time" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Promotion_id" msprop:Generator_ColumnVarNameInTable="columnPromotion_id" msprop:Generator_ColumnPropNameInRow="Promotion_id" msprop:Generator_ColumnPropNameInTable="Promotion_idColumn" msprop:Generator_UserColumnName="Promotion_id" type="xs:int" minOccurs="0" />
              <xs:element name="Point_id" msprop:Generator_ColumnVarNameInTable="columnPoint_id" msprop:Generator_ColumnPropNameInRow="Point_id" msprop:Generator_ColumnPropNameInTable="Point_idColumn" msprop:Generator_UserColumnName="Point_id" type="xs:int" minOccurs="0" />
              <xs:element name="Personnel_id" msprop:Generator_ColumnVarNameInTable="columnPersonnel_id" msprop:Generator_ColumnPropNameInRow="Personnel_id" msprop:Generator_ColumnPropNameInTable="Personnel_idColumn" msprop:Generator_UserColumnName="Personnel_id" type="xs:int" minOccurs="0" />
              <xs:element name="Around_id" msprop:Generator_ColumnVarNameInTable="columnAround_id" msprop:Generator_ColumnPropNameInRow="Around_id" msprop:Generator_ColumnPropNameInTable="Around_idColumn" msprop:Generator_UserColumnName="Around_id" type="xs:int" minOccurs="0" />
              <xs:element name="SSID" msprop:Generator_ColumnVarNameInTable="columnSSID" msprop:Generator_ColumnPropNameInRow="SSID" msprop:Generator_ColumnPropNameInTable="SSIDColumn" msprop:Generator_UserColumnName="SSID" type="xs:int" minOccurs="0" />
              <xs:element name="Seat_id" msprop:Generator_ColumnVarNameInTable="columnSeat_id" msprop:Generator_ColumnPropNameInRow="Seat_id" msprop:Generator_ColumnPropNameInTable="Seat_idColumn" msprop:Generator_UserColumnName="Seat_id" type="xs:int" />
              <xs:element name="Seat_no" msprop:Generator_ColumnVarNameInTable="columnSeat_no" msprop:Generator_ColumnPropNameInRow="Seat_no" msprop:Generator_ColumnPropNameInTable="Seat_noColumn" msprop:Generator_UserColumnName="Seat_no" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Sale_id1" msprop:Generator_ColumnVarNameInTable="columnSale_id1" msprop:Generator_ColumnPropNameInRow="Sale_id1" msprop:Generator_ColumnPropNameInTable="Sale_id1Column" msprop:Generator_UserColumnName="Sale_id1" type="xs:int" minOccurs="0" />
              <xs:element name="Price_ticket" msprop:Generator_ColumnVarNameInTable="columnPrice_ticket" msprop:Generator_ColumnPropNameInRow="Price_ticket" msprop:Generator_ColumnPropNameInTable="Price_ticketColumn" msprop:Generator_UserColumnName="Price_ticket" type="xs:double" minOccurs="0" />
              <xs:element name="tex" msprop:Generator_ColumnVarNameInTable="columntex" msprop:Generator_ColumnPropNameInRow="tex" msprop:Generator_ColumnPropNameInTable="texColumn" msprop:Generator_UserColumnName="tex" type="xs:double" minOccurs="0" />
              <xs:element name="Around_id1" msprop:Generator_ColumnVarNameInTable="columnAround_id1" msprop:Generator_ColumnPropNameInRow="Around_id1" msprop:Generator_ColumnPropNameInTable="Around_id1Column" msprop:Generator_UserColumnName="Around_id1" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DataTable1" />
      <xs:field xpath="mstns:Sale_id" />
      <xs:field xpath="mstns:Seat_id" />
    </xs:unique>
  </xs:element>
</xs:schema>